package com.jzo2o.trade.controller;

import com.jzo2o.api.trade.dto.request.PayReqDTO;
import com.jzo2o.api.trade.dto.response.PayResDTO;
import com.jzo2o.trade.service.IPayService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * \* User: chy
 * \* Date: 2025/10/8  10:40
 * \* Description: 统一支付服务
 * \
 */
@RestController
@RequestMapping("/inner")
public class PayController {

    @Resource
    private IPayService payService;
    @PostMapping("/pay")
    public PayResDTO toPay(@RequestBody PayReqDTO payReqDTO){

        return payService.payServe(payReqDTO);
    }
}
